# -*- coding:utf-8 -*-
"""
define var for web app settings
"""
import os
# from controllers.default import DefaultCtrl
from uimodule.nav import NavModule

settings = {
    # "debug": True,
    # "autoreload": True,
    "cookie_secret": "ac5585d98646d255299c359140537783",
    "xsrf_cookies": True,
    # "autoreload": True,
    "ui_modules": {'nav': NavModule},
    # "default_handler_class": DefaultCtrl,
    "login_url": "/login",
    "static_path": os.path.join(os.path.abspath(os.path.pardir), "fuwam", "web", "static"),
    "template_path": os.path.join(os.path.abspath(os.path.pardir), "fuwam", "view", "default")
}

db_cfg = (
    {
        "name": "redis_1",
        "type": "redis",
        "default": True,
        "host": '127.0.0.1',
        "port": 6379,
        "db": 0
    },
    {
        "name": "mongo_1",
        "type": "mongo",
        "default": True,
        "host": '127.0.0.1',
        "port": 27017,
        "db": "fuwa"
    }
)
